{% extends "base.html" %}
{% load i18n %}
{% load markup %}

{% block title %}{% trans "Events" %} - {{ object.name }}{% endblock %}

{% block extrahead %}
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" 
      href="http://{{ site.domain }}/rss/events/" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" 
      href="http://{{ site.domain }}/atom/events/" />
{% endblock %}

{% block content %}
<h2>{% trans "Events" %}</h2>
<h3>{{ object.name }}</h3>
<p class="date">{% trans "When:" %} <a href="/events/{{ object.start_datetime|date:"Y/b/d" }}">{{ object.start_datetime|date:"l, F jS, Y" }}</a> {{ object.start_datetime|date:" - P" }}</p>
<p class="location">{% trans "Where:" %} <a href="http://maps.google.com/maps?f=q&amp;q={{ object.location }}">{{ object.location }}</a></p>
{% if object.url %}<p class="website">{% trans "Website" %}: <a href="{{ object.url }}">{{ object.url }}</a></p>{% endif %}
{{ object.description|markdown }}
<p class="byline">{% trans "Posted by" %} {% ifnotequal object.user.get_full_name "" %} {{ object.user.get_full_name }}{% else %} {{ object.user.username }}{% endifnotequal %}</p>
<p class="posted">{% trans "Posted on" %} {{ object.pub_date|date:"N j, Y" }}</p>
{% endblock %}
